package com.xiao.login.vm

import com.xiao.login.vm.state.LiveEvent

class OutEventViewModule<Intent>:BaseViewModel<Intent>() {
    private val outEvent: LiveEvent<BaseOutEvent> = LiveEvent()

    interface BaseOutEvent{}

    override fun handleIntent(intent: Intent) {
        super.handleIntent(intent)
        if(intent is BaseOutEvent){
            outEvent.setValue(intent as BaseOutEvent)
        }
    }
}